package edu.upc.dew.service;

import edu.upc.dew.dao.CategoryDao;
import edu.upc.dew.entity.Category;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author gian.corzo
 */
@Service
public class CategoryService {

    private static final Logger log = LoggerFactory.getLogger(CategoryService.class);

    @Autowired
    private CategoryDao categoryDao;

    public List<Category> getCategories() {
        return categoryDao.getCategories();
    }

}
